projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
289a8c2
)
(Fopen_network_stream): Retry gethostbyname after TRY_AGAIN failure.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 19 Jul 1994 19:35:43 +0000
(19:35 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 19 Jul 1994 19:35:43 +0000
(19:35 +0000)
src/process.c
patch
|
blob
|
history
diff --git
a/src/process.c
b/src/process.c
index 3c62349a898a0578ecc57d21605d383ec46b859b..013a31289799eeffc5806f0784a3e7142d731f82 100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-1514,7
+1514,15
@@
Fourth arg SERVICE is name of the service desired, or an integer\n\
}
#ifndef TERM
- host_info_ptr = gethostbyname (XSTRING (host)->data);
+ while (1)
+ {
+ host_info_ptr = gethostbyname (XSTRING (host)->data);
+#ifdef TRY_AGAIN
+ if (! (host_info_ptr == 0 && h_errno == TRY_AGAIN))
+#endif
+ break;
+ Fsleep_for (make_number (1), Qnil);
+ }
if (host_info_ptr == 0)
/* Attempt to interpret host as numeric inet address */
{